<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>display:inline、block、inline-block的区别</title>
	</head>
	<style>
		div, span {
			background-color: green;
			margin: 5px;
			border: 1px solid #333;
			padding: 5px;
			height: 52px;
			color: #fff;
		}
		.b {
			display: block;
		}
		.i {
			display: inline;
		}
		div.ib {
			display: inline-block;
		}
	</style>
	<body>
		<div>
			div display:block
		</div>
		<div class="i">
			div display:inline
		</div>
		<div class="ib">
			div display:inline-block
		</div>
		<span>span display:inline</span>
		<span class="b">span display:block</span>
	</body>
</html>